package com.suray.wcs.service.core.path.api.impl;

import com.suray.wcs.service.system.entity.PortDB;

public class PortContainer {
    private int taskNum;
    private PortDB portDB;

    public PortContainer(PortDB portDB, int taskNum) {
        this.portDB = portDB;
        this.taskNum = taskNum;
    }

    public int getTaskNum() {
        return taskNum;
    }

    public void setTaskNum(int taskNum) {
        this.taskNum = taskNum;
    }

    public PortDB getPortDB() {
        return portDB;
    }

    public boolean isSamePort(PortDB portDB) {
        return this.portDB.getPortId().equals(portDB.getPortId())
                && this.portDB.getPortName().equals(portDB.getPortName());
    }
}
